package com.cskaoyan.mall.commons.exception;

import lombok.Data;

/**
 * @author LiangRuiJiang
 * @since 2022/06/18  10:55
 * 添加购物车的数量大于限购数量,处理异常
 */
@Data
public class AddCartNumOverOutOfRestrictNumException extends BaseBusinessException{

    public AddCartNumOverOutOfRestrictNumException() {
    }

    public AddCartNumOverOutOfRestrictNumException(String errorCode) {
        super(errorCode);
        this.errorCode = errorCode;
    }

    public AddCartNumOverOutOfRestrictNumException(String errorCode, String message) {
        super();
        this.errorCode = errorCode;
        this.message = message;
    }

    public AddCartNumOverOutOfRestrictNumException(String errorCode, String message, String extFields, Throwable cause) {
        super(cause);
        this.errorCode = errorCode;
        this.message = message;

    }

}
